home *** CD-ROM | disk | FTP | other *** search
- GraphForm
- Graphing Demo
- Form15
- Frame3D1
- SSFrame
- &Graph Options
- XNumPtsEdit
- XMaxEdit
- XMinEdit
- EqnEdit
- Sin( Radians(x) ) * Cos( ln(X) )
- Label5
- # of Points to Plot
- Label4
- Label3
- Label2
- &Expression
- CloseBtn
- SSCommand
- """"""""""""
- """"""""""""
- """" """""""
- """"""
- """"""
- """"
- """""
- """""
- """""
- """"
- """"
- """"""""""""
- """"""""""""
- """"""""""""
- """"""""""""
- """"""""""""
- PlotBtn
- SSCommand
- Panel3D1
- SSPanel#
- Panel3D1
- FormulaGraph
- GRAPH
- Label1
- 5Please enter an expression in terms of the variable X
- Arial
- MaskedEdit1_ValidationError&
- InvalidText(
- StartPosition
- CloseBtn_Click
- CollectGraphOpts2
- XMinEdit
- XMaxEdit
- numpts
- NumPtsEdit
- Formula_
- FormulaEdit
- Except
- DispErrorp
- Result
- @ PlotGraph
- Ydatai
- xDelta
- XdataB
- errcodeg
- returntype
- graphExprH
- FBInitExpression
- FBAddVariable
- EXPR_SUCCESSM
- DisplayErrorMessage
- FBSetExpressiont
- FBGetReturnType
- vtFLOAT
- EqnPlotter
- Visible
- NumSeries
- ThisSerie
- errorcode
- FBSetFloatVariableB
- FBGetFloatResult
- GraphData
- XPosData
- TopTitle
- BottomTitle
- EqnEdit
- NumPoints_
- AutoInc
- XNumPtsEdit
- FormulaGraph
- ThisSet
- DrawMode
- GraphCaption
- GraphTitle
- MB_ICONHAND
- PlotBtn_Click
- DoPlotGraph
- Xnumpts
- ThisPoint
- between
- CloseBtn_Click
- CollectGraphOpts
- Maximum less than minimum value
- Number of points must be >= 2
- Formula must be non blank
- CollectGraphDatah
- DoPlotGraph
- PlotBtn_Click
- PlotGraph
- FormulaBuilder Visual Basic (tm) Graphing Demo
- Plots the graph of Formula$ for numpts% evenly spaced values of the variable x
- between XMin# and XMax#
- Assumptions :
- Formula$ contains an expression in terms of a variable X,
- e.g. "Sin( radians(x) ) + Cos( ln(X) )m
- Xmin# < XMax#, numpts% >= 2 s
- There is a VB Graph control on the form named FormulaGraph
- Cannot initialize graph expression
- Add a float variable to the engine. FormulaBuilder manages it
- it for yout
- Set the expression text for the graph
- At this point, were only interested in floating point types
- Floating point expression expected
- Determine x increment value based on xmin,xMax and numpts%p
- expand left and right endpoints by x increment
- Setup preliminary graph parameters
- delay painting until all points calculatedm
- Calculating .....
- Set the beginning value of Xm
- Doublet
- Evaluate the formula for the current value of X
- Pass values on to graph
- Debug.Print "Xdata = ", Xdata#, " Ydata = ", Ydata#
- increment our loop countx
- calculate new value of xx
- Set x variable to new value
- Graph Of :
- FormulaGraph.BottomTitle = "X Values"
- repaint graphi
- PlotGraph
-